<div class="ibox">
	<div class="ibox-content">
		<form class="form-horizontal" id="addForm"
			action="${cxt!}/message/emailConfig/add" method="POST">
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["emailConfig.serviceName"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="emailConfig.name"	placeholder="${_res['emailConfig.serviceName']}" 
					required aria-required="true">
				</div>

				<label for="namebasic" class="col-md-2 control-label">${_res["emailConfig.serviceAddress"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="emailConfig.serverip" placeholder="${_res['emailConfig.serviceAddress']}" 
					required aria-required="true">
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["emailConfig.port"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="emailConfig.port" placeholder="${_res['emailConfig.port']}" required aria-required="true">
				</div>

				<label class="col-md-2 control-label">${_res["emailConfig.numberOfTimesToSend"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="emailConfig.sendnum" placeholder="${_res['emailConfig.numberOfTimesToSend']}" 
					required aria-required="true" number="true">
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label class="col-md-2 control-label">${_res["emailConfig.account"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="emailConfig.accountno"
						placeholder="${_res['emailConfig.account']}" required aria-required="true">
				</div>

				<label class="col-md-2 control-label">${_res["emailConfig.password"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-md-3">
					<input type="text" class="form-control" name="emailConfig.password"
						placeholder="${_res['emailConfig.password']}" required aria-required="true">
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label class="col-sm-2 control-label">${_res["emailConfig.status"]}<span class="fontColorRed">&nbsp;*</span></label>
				<div class="col-sm-3">
					<#dict type="select" class="form-control" name="emailConfig.status" dictCode="COMMON_STATUS" required="true" />
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<div class="row">
					<div class="col-md-10 col-md-offset-2">
						<% if(hasPrivilegeUrl("emailConfigList")){ %>
						<button type="button" class="btn btn-warning" onClick="ajaxContent('/message/emailConfig/list')">${_res["system.return"]}</button>
						<% } %> 
						<% if(hasPrivilegeUrl("emailConfigAdd")){ %>
						<button type="submit" class="btn btn-primary">${_res["system.save"]}</button>
						<% } %> 
						<% if(hasPrivilegeUrl("emailConfigList")){ %>
						<button type="button" class="btn btn-danger" onClick="ajaxContent('/message/emailConfig/list')">${_res["system.cancel"]}</button>
						<% } %>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<#submit formId="addForm" divId="content" /> <#nav />